﻿<Controls:SinacorWindow 
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
          xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          mc:Ignorable="d"
          xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
          xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
          WindowStartupLocation="CenterScreen" 
          AutoContentHeight="True" 
          AutoContentWidth="True"
          WindowState="Maximized" 
          Title="{DynamicResource Bovespa.ManutencaoOrdens.Label.CadastroBloqueio}"
          x:Class="Sinacor.UI.Bovespa.ManutencaoOrdens.View.SmartClient.CadastroBloqueio" 
          ModulePlus="False"
          ModuleId="ORD">

    <Controls:SinacorExpanderContainer>
        <Grid.RowDefinitions>
            <RowDefinition	Height="Auto"/>
            <RowDefinition	Height="*"
							MinHeight="150"/>
        </Grid.RowDefinitions>
        <Controls:SinacorExpander	Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Pesquisa}"
									Grid.Row="0" IsExpanded="True"
                                    x:Name="ExpPesquisa">
            <Grid x:Name="GrdPesquisa" Height="153">
                <Controls:SinacorLabel	HorizontalAlignment="Left"
										Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Cliente}"
										Width="75"
                                        x:Name="LblCliente"/>
                <Controls:SinacorTextBox	HorizontalAlignment="Left"
											Margin="79,0,0,0"
											Width="85"
											VerticalAlignment="Top"
                                            CharacterCasing="Upper"
											TabIndex="1"
											MaxLength="7"
                                            x:Name="TxtCliente"
                                            Text="{Binding FiltroBloqueio.Cliente.Apelido}">
                    <Controls:SinacorTextBox.ValidationRules>
                        <Validation:EventValidationRule Validating="TxtCliente_Validating"/>
                    </Controls:SinacorTextBox.ValidationRules>
                </Controls:SinacorTextBox>
                <Controls:SinacorButton	HorizontalAlignment="Left"
										VerticalAlignment="Top"
										Margin="168,0,0,0"
										Icon="IconButtonClient"
										ToolTip="{DynamicResource Bovespa.Clientes.Tooltip.PesquisarCliente}" 
										TabIndex="2"
                                        x:Name="BtnPesquisarCliente"/>
                <Controls:SinacorLabel	Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ativo}"
										Width="55"
										Margin="194,0,0,0"
										HorizontalAlignment="Left"
										VerticalAlignment="Top"
                                        x:Name="LblAtivo"/>
                <Controls:SinacorTextBox	VerticalAlignment="Top"
											Margin="253,0,0,0"
											MaxLength="12"
											Width="115"
											HorizontalAlignment="Left"
                                            CharacterCasing="Upper"
											TabIndex="3"
                                            x:Name="TxtAtivo"
                                            Text="{Binding FiltroBloqueio.Ativo}"/>
                <Controls:SinacorButton	HorizontalAlignment="Left"
										VerticalAlignment="Top"
										Margin="372,0,0,0"
										Icon="IconButtonSearch"
										ToolTip="{DynamicResource Bovespa.Clientes.Tooltip.PesquisarAtivo}" 
										TabIndex="4"
                                        x:Name="BtnPesquisarAtivo"/>
                <Controls:SinacorGroupBox HorizontalAlignment="Left" 
									VerticalAlignment="Top" 
									Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoBloqueio}" 
									Width="357"
									Height="76" 
									Margin="0,25,0,0"
                                    x:Name="GrpTipoBloqueio">
                    <Grid>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top" 
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Cliente}"
												Width="95"
                                                TabIndex="6"
                                                x:Name="RdbCliente"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top" 
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ativo}"
												Margin="99,0,0,0" 
												Width="95"
                                                TabIndex="7"
                                                x:Name="RdbAtivo"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top"
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoCliente}" 
												Margin="198,0,0,0" 
												Width="145"
                                                TabIndex="8"
                                                x:Name="RdbTipoCliente"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top" 
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Assessor}" 
												Margin="0,25,0,0" 
												Width="95"
                                                TabIndex="9"
                                                x:Name="RdbAssessor"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top" 
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Mercado}"
												Margin="99,25,0,0" 
												Width="95"
                                                TabIndex="10"
                                                x:Name="RdbMercado"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
												VerticalAlignment="Top" 
												Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.GrupoAfinidade}" 
												Margin="198,25,0,0" 
												Width="145"
                                                TabIndex="11"
                                                x:Name="RdbGrupoAfinidade"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox	HorizontalAlignment="Left"
										Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Natureza}"
										Width="109"
										Height="76"
										Margin="361,25,0,0" VerticalAlignment="Top"
                                        x:Name="GrpNatureza">
                    <Grid>
                        <Controls:SinacorCheckBox VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Compra}" 
											Width="90"
                                            TabIndex="12"
                                            x:Name="ChkCompra"/>
                        <Controls:SinacorCheckBox VerticalAlignment="Top" 
										        Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Venda}" 
										        Margin="0,25,0,0" 
										        Width="82"
                                                TabIndex="13"
                                                x:Name="ChkVenda"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox	HorizontalAlignment="Left"
										    Margin="474,25,0,0"
										    Width="161"
										    Height="76"
										    Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Periodo}" 
                                            VerticalAlignment="Top"
                                            x:Name="GrpPeriodo">
                    <Grid Width="219" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <Controls:SinacorLabel	HorizontalAlignment="Left"
											    VerticalAlignment="Top"
											    Width="36"
											    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.De}"
											    HorizontalContentAlignment="Left"
                                                x:Name="LblDataInicio"/>
                        <Controls:SinacorDatePicker
												Margin="40,0,0,0"
												VerticalAlignment="Top"
												Width="105"
												TabIndex="14" HorizontalAlignment="Left"
                                                x:Name="DtpDataInicio"
                                                Value="{Binding FiltroBloqueio.DataInicial}"/>
                        <Controls:SinacorLabel	VerticalAlignment="Stretch"
											    Width="36"
											    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ate}"
											    Margin="0,21,0,4"
											    HorizontalAlignment="Left"
											    HorizontalContentAlignment="Left"
                                                x:Name="LblDataFim"/>
                        <Controls:SinacorDatePicker	HorizontalAlignment="Left"
												    Margin="40,25,0,0"
												    Width="105"
												    VerticalAlignment="Top"
												    TabIndex="15"
                                                    x:Name="DtpDataFim"
                                                    Value="{Binding FiltroBloqueio.DataFinal}"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorLabel	HorizontalAlignment="Left"
									    VerticalAlignment="Top"
									    Width="71"
									    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Mercado}"
									    Margin="399,0,0,0"
                                        x:Name="LblMercado"/>
                <Controls:SinacorComboBox	HorizontalAlignment="Left"
										    Margin="474,0,0,0"
										    VerticalAlignment="Top"
										    Width="160"
										    TabIndex="5"
                                            x:Name="CmbMercado"
                                            ItemsSource="{Binding ListaMercados}"
                                            SelectedValuePath="Codigo" 
                                            DisplayMemberPath="Descricao"
                                            WidthPopup="400"
                                            SelectedValue="{Binding FiltroBloqueio.Mercado.Codigo}"/>
                <Controls:SinacorLabel	HorizontalAlignment="Left"
									    VerticalAlignment="Top"
									    Width="195"
									    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Assessor}"
									    HorizontalContentAlignment="Left"
									    Margin="0,105,0,0"
                                        x:Name="LblAssessor"/>
                <Controls:SinacorComboBox	HorizontalAlignment="Left"
										    Margin="0,126,0,0"
										    VerticalAlignment="Top"
										    Width="207"
										    TabIndex="16"
                                            x:Name="CmbAssessor"
                                            ItemsSource="{Binding ListaAssessores}"
                                            SelectedValuePath="Codigo" 
                                            DisplayMemberPath="Nome"
                                            WidthPopup="400"
                                            SelectedValue="{Binding FiltroBloqueio.Assessor.Codigo}"/>
                <Controls:SinacorLabel	HorizontalAlignment="Left"
									    VerticalAlignment="Top"
									    Width="195"
									    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoCliente}"
									    HorizontalContentAlignment="Left"
									    Margin="211,104,0,0"
                                        x:Name="LblTipoCliente"/>
                <Controls:SinacorComboBox	HorizontalAlignment="Left"
										    Margin="211,126,0,0"
										    VerticalAlignment="Top"
										    Width="207"
										    TabIndex="17"
                                            x:Name="CmbTipoCliente"
                                            ItemsSource="{Binding ListaTiposClientes}"
                                            SelectedValuePath="Codigo" 
                                            DisplayMemberPath="Descricao"
                                            WidthPopup="400"
                                            SelectedValue="{Binding FiltroBloqueio.TipoCliente.Codigo}"/>
                <Controls:SinacorLabel	HorizontalAlignment="Left"
									    VerticalAlignment="Top"
									    Width="195"
									    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.GrupoAfinidade}"
									    HorizontalContentAlignment="Left"
									    Margin="428,104,0,0"
                                        x:Name="LblGrupoAfinidade"/>
                <Controls:SinacorComboBox	HorizontalAlignment="Left"
										    Margin="428,126,0,0"
										    VerticalAlignment="Top"
										    Width="207"
										    TabIndex="18"
                                            x:Name="CmbGrupoAfinidade"
                                            ItemsSource="{Binding ListaGruposAfinidades}"
                                            SelectedValuePath="Codigo" 
                                            DisplayMemberPath="Descricao"
                                            WidthPopup="400"
                                            SelectedValue="{Binding FiltroBloqueio.GrupoAfinidade.Codigo}"/>

                <Controls:SinacorButton	HorizontalAlignment="Left"
										Margin="639,0,0,33"
										VerticalAlignment="Bottom"
										Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Pesquisar}"
										IsDefault="True"
										Width="110"
										TabIndex="19"
										CausesValidation="True"
                                        x:Name="BtnPesquisar"/>
                <Controls:SinacorButton	HorizontalAlignment="Left"
	                           			Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.NovaPesquisa}"
	                           			Width="110"
	                           			Margin="639,124,0,0"
										TabIndex="20" VerticalAlignment="Top"
                                        x:Name="BtnNovaPesquisa"/>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander	Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Bloqueio}"
									Grid.Row="1"
									Margin="0,4,0,0"
									AllowExpand="False" IsExpanded="True"
                                    x:Name="ExpBloqueio">
            <Controls:SinacorExpanderContainer>
                
                <Controls:SinacorExpanderContainer.RowDefinitions>
                    <RowDefinition	Height="*"/>
                </Controls:SinacorExpanderContainer.RowDefinitions>
                
                <Controls:SinacorDataGrid   x:Name="DtgBloqueio"
                                            ItemsSource="{Binding ListaBloqueios}"
                                            Grid.Row="0"
                                            RowEditMode="EditPanel"
                                            AllowPanelInsert="True"
                                            AllowPanelUpdate="True"
                                            AllowDelete="True"
                                            PanelUpdateTemplate="{Binding PanelInsertTemplate, RelativeSource={RelativeSource Self}}">
                    <Controls:SinacorDataGrid.PanelInsertTemplate>
                        <DataTemplate>
                            <Grid>
                                <Controls:SinacorGroupBox   HorizontalAlignment="Left" 
															VerticalAlignment="Top" 
															Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoBloqueio}"
															Width="357" 
															Height="76" 
															Margin="0,0,0,0"
                                                            x:Name="GrpGridTipoBloqueio">
                                    <Grid>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 
																		VerticalAlignment="Top" 
																		Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Cliente}"
                                                                        TabIndex="1"
																		Width="95"
                                                                        x:Name="RdbGridCliente" Checked="RdbCliente_Checked"/>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 							
																		VerticalAlignment="Top" 
																		Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ativo}"
																		Margin="99,0,0,0" 
																		Width="95"
                                                                        TabIndex="2"
                                                                        x:Name="RdbGridAtivo" Checked="RdbAtivo_Checked"/>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 
																		VerticalAlignment="Top"
																		Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoCliente}"
																		Margin="198,0,0,0" 
																		Width="145"
                                                                        TabIndex="3"
                                                                        x:Name="RdbGridTipoCliente" Checked="RdbTipoCliente_Checked"/>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 
																	    VerticalAlignment="Top" 
																	    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Assessor}"
																	    Margin="0,25,0,0" 
																	    Width="95"
                                                                        TabIndex="4"
                                                                        x:Name="RdbGridAssessor" Checked="RdbAssessor_Checked"/>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 
																		VerticalAlignment="Top" 
																		Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Mercado}"
																		Margin="99,25,0,0" 
																		Width="95"
                                                                        TabIndex="5"
                                                                        x:Name="RdbGridMercado" Checked="RdbMercado_Checked"/>
                                        <Controls:SinacorRadioButton    HorizontalAlignment="Left" 
																		VerticalAlignment="Top" 
																		Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.GrupoAfinidade}"
																		Margin="198,25,0,0" 
																		Width="145"
                                                                        TabIndex="6"
                                                                        x:Name="RdbGridGrupoAfinidade" Checked="RdbGrupoAfinidade_Checked"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorGroupBox   HorizontalAlignment="Left"
															Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Natureza}"
															Width="109"
															Height="76"
															Margin="361,0,0,0" VerticalAlignment="Top"
                                                            x:Name="GrpGridNatureza">
                                    <Grid>
                                        <Controls:SinacorCheckBox   VerticalAlignment="Top" 
																	Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Compra}" 
																	Width="90"
                                                                    TabIndex="7"
                                                                    x:Name="ChkGridCompra"/>
                                        <Controls:SinacorCheckBox   VerticalAlignment="Top" 
																    Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Venda}" 
																    Margin="0,25,0,0" 
																    Width="82"
                                                                    TabIndex="8"
                                                                    x:Name="ChkGridVenda"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorGroupBox   HorizontalAlignment="Left"
															Margin="474,0,0,0"
															Width="161"
															Height="76"
															Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Periodo}" 
                                                            VerticalAlignment="Top"
                                                            x:Name="GrpGridPeriodo">
                                    <Grid Width="219" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                        <Controls:SinacorLabel	HorizontalAlignment="Left"
																VerticalAlignment="Top"
																Width="36"
																Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.De}"
																HorizontalContentAlignment="Left"
                                                                x:Name="LblGridDataInicio"/>
                                        <Controls:SinacorDatePicker
																	Margin="40,0,0,0"
																	VerticalAlignment="Top"
																	Width="105"
																	TabIndex="9" HorizontalAlignment="Left"
                                                                    x:Name="DtpGridDataInicio"
                                                                    Value="{Binding DataInicial}"/>
                                        <Controls:SinacorLabel  VerticalAlignment="Stretch"
																Width="36"
																Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ate}"
																Margin="0,21,0,4"
																HorizontalAlignment="Left"
																HorizontalContentAlignment="Left"
                                                                x:Name="LblGridDataFim"/>
                                        <Controls:SinacorDatePicker     HorizontalAlignment="Left"
																		Margin="40,25,0,0"
																		Width="105"
																		VerticalAlignment="Top"
																		TabIndex="10"
                                                                        x:Name="DtpGridDataFim"
                                                                        Value="{Binding DataFinal}"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorLabel	HorizontalAlignment="Left"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Cliente}"
														Width="75" Margin="0,80,0,0" HorizontalContentAlignment="Left"
                                                        x:Name="LblGridCliente"/>

                                <Controls:SinacorTextBox	HorizontalAlignment="Left"
															Margin="0,101,0,0"
															Width="129"
															VerticalAlignment="Top"
															TabIndex="11"
															MaxLength="7"
                                                            CharacterCasing="Upper"
                                                            x:Name="TxtGridCliente"
                                                            Text="{Binding Cliente.Apelido}">
                                    <Controls:SinacorTextBox.ValidationRules>
                                        <Validation:EventValidationRule Validating="TxtGridCliente_Validating"/>
                                    </Controls:SinacorTextBox.ValidationRules>
                                </Controls:SinacorTextBox>
                                <Controls:SinacorButton	HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Margin="133,101,0,0"
														Icon="IconButtonClient"
														ToolTip="{DynamicResource Bovespa.Clientes.Tooltip.PesquisarCliente}" 
														TabIndex="12"
                                                        x:Name="BtnGridPesquisarCliente"
                                                        OnBufferedClick="BtnGridPesquisarCliente_OnBufferedClick"/>

                                <Controls:SinacorLabel	Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Ativo}"
														Width="55"
														Margin="159,80,0,0"
														HorizontalAlignment="Left"
														VerticalAlignment="Top" HorizontalContentAlignment="Left"
                                                        x:Name="LblGridAtivo"/>

                                <Controls:SinacorTextBox	VerticalAlignment="Top"
															Margin="159,101,0,0"
															MaxLength="12"
															Width="129"
															HorizontalAlignment="Left"
															TabIndex="13"
                                                            x:Name="TxtGridAtivo"
                                                            CharacterCasing="Upper"
                                                            Text="{Binding Ativo}"/>
                                <Controls:SinacorButton	HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Margin="291,101,0,0"
														Icon="IconButtonSearch"
														ToolTip="{DynamicResource Bovespa.Clientes.Tooltip.PesquisarAtivo}" 
														TabIndex="14"
                                                        x:Name="BtnGridPesquisarAtivo"
                                                        OnBufferedClick="BtnGridPesquisarAtivo_OnBufferedClick"/>


                                <Controls:SinacorLabel      VerticalAlignment="Top"
															Width="Auto"
															Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Mercado}"
															HorizontalContentAlignment="Left"
															Margin="318,80,503,0"
                                                            x:Name="LblGridMercado"/>
                                <Controls:SinacorComboBox   HorizontalAlignment="Left"
															Margin="318,101,0,0"
															VerticalAlignment="Top"
															Width="155"
															TabIndex="15"
                                                            x:Name="CmbGridMercado"
                                                            ItemsSource="{Binding PresenterCadastroBloqueio.ListaMercados, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                            SelectedValuePath="Codigo" 
                                                            DisplayMemberPath="Descricao"
                                                            WidthPopup="400"
                                                            SelectedValue="{Binding Mercado.Codigo}"/>
                                <Controls:SinacorLabel  HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Width="195"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Assessor}"
														Margin="0,126,0,0" HorizontalContentAlignment="Left"
                                                        x:Name="LblGridAssessor"/>
                                <Controls:SinacorComboBox	HorizontalAlignment="Left"
															Margin="0,147,0,0"
															VerticalAlignment="Top"
															Width="155"
															TabIndex="16"
                                                            x:Name="CmbGridAssessor"
                                                            ItemsSource="{Binding PresenterCadastroBloqueio.ListaAssessores, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                            SelectedValuePath="Codigo" 
                                                            DisplayMemberPath="Nome"
                                                            WidthPopup="400"
                                                            SelectedValue="{Binding Assessor.Codigo}"/>
                                <Controls:SinacorLabel  HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Width="195"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.TipoCliente}"
														HorizontalContentAlignment="Left"
														Margin="159,126,0,0"
                                                        x:Name="LblGridTipoCliente"/>
                                <Controls:SinacorComboBox   HorizontalAlignment="Left"
															Margin="159,147,0,0"
															VerticalAlignment="Top"
															Width="155"
															TabIndex="17"
                                                            x:Name="CmbGridTipoCliente"
                                                            ItemsSource="{Binding PresenterCadastroBloqueio.ListaTiposClientes, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                            SelectedValuePath="Codigo" 
                                                            DisplayMemberPath="Descricao"
                                                            WidthPopup="400"
                                                            SelectedValue="{Binding TipoCliente.Codigo}"/>
                                <Controls:SinacorLabel	HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Width="195"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.GrupoAfinidade}"
														HorizontalContentAlignment="Left"
														Margin="318,126,0,0"
                                                        x:Name="LblGridGrupoAfinidade"/>
                                <Controls:SinacorComboBox	HorizontalAlignment="Left"
														    Margin="318,147,0,0"
														    VerticalAlignment="Top"
														    Width="155"
														    TabIndex="18"
                                                            x:Name="CmbGridGrupoAfinidade"
                                                            ItemsSource="{Binding PresenterCadastroBloqueio.ListaGruposAfinidades, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                            SelectedValuePath="Codigo" 
                                                            DisplayMemberPath="Descricao"
                                                            WidthPopup="400"
                                                            SelectedValue="{Binding GrupoAfinidade.Codigo}"/>
                                <Controls:SinacorLabel  HorizontalAlignment="Left"
														VerticalAlignment="Top"
														Width="195"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Descricao}"
														HorizontalContentAlignment="Left"
														Margin="0,172,0,0"
                                                        x:Name="LblGridDescrição"/>
                                <Controls:SinacorTextBox    VerticalAlignment="Top" 
															Text="{Binding Descricao}" 
															TextWrapping="Wrap" 
															Margin="0,193,0,0" 
															Width="635" 
															Height="76" 
                                                            TabIndex="19"
															HorizontalAlignment="Left"
                                                            MaxLength="100"
                                                            x:Name="TxtGridDescrição"/>
                                <Controls:SinacorButton     VerticalAlignment="Top" 
															Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Salvar}" 
															RenderTransformOrigin="3.09,6.143" 
															Margin="431,273,0,0" 
															HorizontalAlignment="Left"
                                                            x:Name="BtnGridSalvar"
                                                            TabIndex="20"
                                                            OnBufferedClick="BtnGridSalvar_OnBufferedClick"/>
                                <Controls:SinacorButton     HorizontalAlignment="Left" 
															VerticalAlignment="Top" 
															Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Cancelar}" 
															RenderTransformOrigin="3.09,6.143" 
															Margin="535,273,0,0"
                                                            TabIndex="21"
                                                            x:Name="BtnGridCancelar"
                                                            OnBufferedClick="BtnGridCancelar_OnBufferedClick"/>

                            </Grid>
                        </DataTemplate>
                    </Controls:SinacorDataGrid.PanelInsertTemplate>
                    <Controls:SinacorDataGrid.Columns>
                        <Controls:Column	Name="TipoBloqueio"
				        					Title="Bovespa.ManutencaoOrdens.Label.TipoBloqueio"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="Tipo"/>

                        <Controls:Column	Name="DataInicial"
				        					Title="Bovespa.ManutencaoOrdens.Label.DataInicial"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Center"
                                            DisplayMemberPath="DataInicial"/>

                        <Controls:Column	Name="DataFinal"
				        					Title="Bovespa.ManutencaoOrdens.Label.DataFinal"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Center"
                                            DisplayMemberPath="DataFinal"/>

                        <Controls:Column	Name="Cliente"
				        					Title="Bovespa.ManutencaoOrdens.Label.Cliente"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="Cliente.Apelido"/>

                        <Controls:Column	Name="Assessor"
				        					Title="Bovespa.ManutencaoOrdens.Label.Assessor"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="Assessor.Nome"/>

                        <Controls:Column	Name="Afinidade"
				        					Title="Bovespa.ManutencaoOrdens.Label.Afinidade"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="GrupoAfinidade.Descricao"/>

                        <Controls:Column	Name="TipoCliente"
				        					Title="Bovespa.ManutencaoOrdens.Label.TipoCliente"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="TipoCliente.Descricao"/>

                        <Controls:Column	Name="Mercado"
				        					Title="Bovespa.ManutencaoOrdens.Label.Mercado"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="Mercado.Descricao"/>

                        <Controls:Column	Name="Ativo"
				        					Title="Bovespa.ManutencaoOrdens.Label.Ativo"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="Ativo"/>

                        <Controls:Column	Name="NaturezaOperacao"
				        					Title="Bovespa.ManutencaoOrdens.Label.NaturezaOperacao"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Left"
                                            DisplayMemberPath="NaturezaOperacao"/>
                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
            </Controls:SinacorExpanderContainer>
        </Controls:SinacorExpander>
    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>